// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const brandList = (data) => {
    return service({
        url: '/platform/brand/list',
        method: 'post',
        data
    })
};
export const findByid = (id) => {
    return service({
        url: '/platform/brand/findById?id='+id,
        method: 'get',
    })
};
export const save = (data) => {
    return service({
        url: '/platform/brand/insert',
        method: 'post',
        data
    })
};
export const update = (data) => {
    return service({
        url: '/platform/brand/update',
        method: 'post',
        data
    })
};
export const remove = (id) => {
    return service({
        url: '/platform/brand/delById?id='+id,
        method: 'post',
    })
};
export const delByIds = (data) => {
    return service({
        url: '/platform/brand/delByIds',
        method: 'post',
        data
    })
};
export const add = (data) => {
    return service({
        url: '/goods/specification/insert',
        method: 'post',
        data
    })
};
export const listAll = () => {
    return service({
        url: '/platform/brand/listAll',
        method: 'post',
    })
};
